package miiteen.hb.zwxx.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import miiteen.core.configuration.MeetingProperties;
import miiteen.customsportal.basic.beans.HistoryViewBase;
import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;

public class Zwxx extends HistoryViewBase {
    /**
     * id
     */
    private String id;
    /**
     * 标题
     */
    private String subject;
    /**
     * 办结时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private Date completeTime;
    /**
     * 明细链接
     */
    private String url;
    /**
     * 显示日期
     */
    private Date displayDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public String getUrl() {
        return MeetingProperties.getConfigByKey("zwxx.url") + this.id;
    }

    public Date getDisplayDate() {
        return this.completeTime;
    }
}
